const mongoose = require("../db/index");

const shopInfoSchema = mongoose.Schema(
  {
    name: {
      type: String,
      required: true,
    },
    imgUrl: String,
    sales: Number,
    expressLimit: {
      type: Number,
      default: 0,
    },
    expressPrice: Number,
    slogon: String,
  },
  { timestamps: true }
);

const shopInfoModel = mongoose.model("shop", shopInfoSchema);

module.exports = shopInfoModel;
